package com.uaroadshow.finale.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.uaroadshow.entity.trade.Order;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface OrderDao {

    /**
     * @param code
     * @return
     */
    @Query("FROM Order WHERE disabled = false AND code = :code")
    public Order getOrder(@Variable("code") String code);
    
}
